package me.plusne.common.Json;

import java.io.Serializable;
import java.util.List;

public class JsonHomeAppVersionList implements Serializable {
    private String app;
    private List<DataBean> data;
    private String pre;
    private int toHour;

    public boolean canEqual(Object obj) {
        return obj instanceof JsonHomeAppVersionList;
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof JsonHomeAppVersionList)) {
            return false;
        }
        JsonHomeAppVersionList jsonHomeAppVersionList = (JsonHomeAppVersionList) obj;
        if (!jsonHomeAppVersionList.canEqual(this) || getToHour() != jsonHomeAppVersionList.getToHour()) {
            return false;
        }
        List<DataBean> data = getData();
        List<DataBean> data2 = jsonHomeAppVersionList.getData();
        if (data != null ? !data.equals(data2) : data2 != null) {
            return false;
        }
        String app = getApp();
        String app2 = jsonHomeAppVersionList.getApp();
        if (app != null ? !app.equals(app2) : app2 != null) {
            return false;
        }
        String pre = getPre();
        String pre2 = jsonHomeAppVersionList.getPre();
        return pre != null ? pre.equals(pre2) : pre2 == null;
    }

    public String getApp() {
        return this.app;
    }

    public List<DataBean> getData() {
        return this.data;
    }

    public String getPre() {
        return this.pre;
    }

    public int getToHour() {
        return this.toHour;
    }

    public int hashCode() {
        int toHour = getToHour() + 59;
        List<DataBean> data = getData();
        int hashCode = (toHour * 59) + (data == null ? 43 : data.hashCode());
        String app = getApp();
        int hashCode2 = (hashCode * 59) + (app == null ? 43 : app.hashCode());
        String pre = getPre();
        return (hashCode2 * 59) + (pre != null ? pre.hashCode() : 43);
    }

    public void setApp(String str) {
        this.app = str;
    }

    public void setData(List<DataBean> list) {
        this.data = list;
    }

    public void setPre(String str) {
        this.pre = str;
    }

    public void setToHour(int i) {
        this.toHour = i;
    }

    public String toString() {
        return "JsonHomeAppVersionList(toHour=" + getToHour() + ", data=" + getData() + ", app=" + getApp() + ", pre=" + getPre() + ")";
    }

    public static class DataBean implements Serializable {
        private String vername;
        private int version;

        public boolean canEqual(Object obj) {
            return obj instanceof DataBean;
        }

        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof DataBean)) {
                return false;
            }
            DataBean DataBean = (DataBean) obj;
            if (!DataBean.canEqual(this) || getVersion() != DataBean.getVersion()) {
                return false;
            }
            String vername = getVername();
            String vername2 = DataBean.getVername();
            return vername != null ? vername.equals(vername2) : vername2 == null;
        }

        public String getVername() {
            return this.vername;
        }

        public int getVersion() {
            return this.version;
        }

        public int hashCode() {
            int version = getVersion() + 59;
            String vername = getVername();
            return (version * 59) + (vername == null ? 43 : vername.hashCode());
        }

        public void setVername(String str) {
            this.vername = str;
        }

        public void setVersion(int i) {
            this.version = i;
        }

        public String toString() {
            return "JsonHomeAppVersionList.DataBean(version=" + getVersion() + ", vername=" + getVername() + ")";
        }
    }

}
